<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>资产管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.min.js"></script>
	<style>
		.login_button{background-image:url(images/login/login_button.jpg); width:64px; height:35px;}
	</style>
	<script type="text/javascript" language="javascript">
	if(window!=top){
		top.location.href=location.href;
	}
        function CheckLogin() {
            var uid = $('#userName').val();
            var pwd = $('#password').val();
            if (uid.length == 0) {
                alert("用户帐号不能为空！");
                return false;
            }
            if (pwd.length == 0) {
                alert("用户密码不能为空！");
                return false;
            }
            return true;
        }

        $(document).ready(function () {
            $('#userName').focus();
        });
    </script>
	<script type="text/javascript">
		function reloadVerifyCode(){	
		   var timenow = new Date().getTime(); 
		   $("#capimg").src="captcha.jsp?time="+timenow;
		}
	</script>
  </head>  
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/login/bg.jpg">
<!-- Save for Web Slices (idc.psd) -->
<form name="login_frm" action="login.action" method="post">
<table width="100%" height="574" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
<tr>
<td width="30%"  rowspan="2" valign="top"><img src="images/login/login_01.jpg" width="417" height="556" alt=""></td>
<td width="17%"  rowspan="2" background="images/login/login_02.jpg"></td>
	<td width="53%" height="332" align="left" valign="top"  >
	<img src="images/login/login_03.jpg" width="599" height="332" alt=""></td>
</tr>
	<tr>
		<td height="224" align="right" valign="top" background="images/login/login_04.jpg"   style="background-repeat:no-repeat"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="21%" rowspan="5">&nbsp;</td>
            <td height="5" colspan="2"></td>
          </tr>
          <tr>
            <td height="45" colspan="2"><input tabindex="1" type="text" class="logininput"
											style="border: 0; background-image: url(images/login/input_bg.jpg); background-repeat: no-repeat; width: 224px; height: 28px; font-size: 12px; color: #000000; padding-top: 7px; padding-left: 3px;"
											id="userName" name="userName" placeholder="请输入用户名" /></td>
          </tr>
          <tr>
            <td height="45" colspan="2"><input tabindex="2"
										id="password" name="password"
										style="border: 0; background-image: url(images/login/input_bg2.jpg); background-repeat: no-repeat; width: 224px; height: 28px; font-size: 12px; color: #000000; padding-top: 7px; padding-left: 3px;"
									    type="password" class="logininput"/><input name="p_password" id="p_password" type="hidden" /></td>
          </tr>
          <tr>
            <td height="21" colspan="2"><input tabindex="2"
										name="captcha"
										style="border: 0; background-image: url(images/login/input_bg3.jpg); background-repeat: no-repeat; width: 92px; height: 28px; font-size: 12px; color: #000000; padding-top: 7px; padding-left: 3px;"
										type="text" class="logininput"/>&nbsp;
									<img id="capimg" alt="看不清楚？换一张" src="captcha.jsp" align="absmiddle" onClick="javascript:reloadVerifyCode();" style="margin-bottom: 8px"/>
									</td>
          </tr>
          <tr>
            <td width="29%" height="72" align="right">
               <input style="display:block;border:none;cursor:pointer" class="login_button" type="submit"  onclick="return CheckLogin()" tabIndex="4" value=""/>
            </td>
            <td width="50%" align="right">&nbsp;</td>
          </tr>
        </table></td>
  </tr>
	<tr>
		<td colspan="3" background="images/login/login_05.gif" height="20"></td>
  </tr>
</table>
</form>
<!-- End Save for Web Slices -->
</body>
</html>